﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YhmOA.IDAL;
using YhmOA.Model;

namespace YhmOA.EFDAL
{
    public class ManagerOA_Menu_LeftMenuDAL : IManagerOA_Menu_LeftMenuDAL
    {
        private Entities entities;

        public ManagerOA_Menu_LeftMenuDAL()
        {
            entities = new Entities(typeof(ManagerOA_Menu_LeftMenu));
        }

        #region 维护顶部菜单时获取左边菜单的方法
        /// <summary>
        /// 维护顶部菜单时获取左边菜单的方法
        /// </summary>
        /// <param name="ID">顶部菜单的ID</param>
        /// <param name="SearchText">查询关键字</param>
        /// <returns></returns>
        public List<ManagerOA_Menu_LeftMenu> GetManagerOA_Menu_LeftMenuByTopMenuID(int ID, string SearchText)
        {
            return entities.GetManagerOA_Menu_LeftMenuByTopMenuID(ID, SearchText);
        }
        #endregion
    }
}
